# Replication Package README

## Overview
This replication package contains all code and data necessary to reproduce the results presented in A Test for Pricing Power by Watson and Ziv. 
The package includes data processing scripts, analysis code, and figure generation routines.

## Approach

- Two empirical designs / data: small_tax_reform, simtaxiv
- Each has two sets of stata code: makedata, analysis
- - makedata calls worker files to build the final data
- - analysis calls the final data and creates tables, figures

- We include the following output:
- - data: 
- - - nyc_07to19_analysis_data.dta : final data for taxsimiv
- - - nychvs_2002to2017.dta : final data for small_building_reform
-
- - output:
- - - figures/   (see below)
- - - tables/    (see below)
- - - logs/ 	 (see below)
- - - - these are as of August 2025

## To run:
- - (1) update "BEDROCK" filepath global in 
- - - makedata_nyc_building_panel_replication.do
- - - makedata_nychvs.do
- - - analysis_simtaxiv.do
- - - analysis_small_building_reform.do
-
- - (2) must run both makedata files first (any order), then can run either analysis file


## System Requirements

### Software Requirements
- **Stata 13** or higher 
- - Required packages: reghdfe, coefplot, binscatter, ivreg2, ivreghdfe, ftools, gtools


## File Structure


replication_archive/
├── code
│   ├── analysis
│   │   ├── simtaxiv
│   │   │   ├── analysis_simtaxiv.do
│   │   │   └── worker
│   │   │       ├── worker_101_table_2a_taxiv_fs_rf_2sls.do
│   │   │       ├── worker_102_taxiv_het_analysis.do
│   │   │       ├── worker_103_nearest_neighbor_nonspatial_markets.do
│   │   │       ├── worker_201_taxiv_summary_statistics.do
│   │   │       ├── worker_202_taxiv_subsample_res_only.do
│   │   │       ├── worker_203_taxiv_subsample_rs_less_50pct.do
│   │   │       ├── worker_204_taxiv_alt_mkt_blockyrFE.do
│   │   │       ├── worker_205_taxiv_posneg_iv_split.do
│   │   │       ├── worker_206_taxiv_avgcost_curve.do
│   │   │       └── worker_207_taxiv_level_reg.do
│   │   └── small_building_reform
│   │       ├── analysis_small_building_reform.do
│   │       └── worker
│   │           ├── worker_101_table_1a_did_ltax.do
│   │           ├── worker_102_table_1b_did_lrent.do
│   │           ├── worker_103_figure_1a_binscatter_ltax.do
│   │           ├── worker_104_figure_1b_event_study_lrent.do
│   │           ├── worker_201_appendix_summstat.do
│   │           ├── worker_202_appendix_pre_balance.do
│   │           ├── worker_203_appendix_event_study_lrent.do
│   │           ├── worker_204_appendix_new_buildings.do
│   │           ├── worker_205_appendix_bgroup_occ_did.do
│   │           ├── worker_206_appendix_level_tax_did.do
│   │           └── worker_207_appendix_level_rent_did.do
│   └── makedata
│       ├── simtaxiv
│       │   ├── makedata_nyc_building_panel_replication.do
│       │   └── worker
│       │       ├── worker_101_csv_to_dta_pluto.do
│       │       ├── worker_102_csv_to_dta_dof_and_drop_condo.do
│       │       ├── worker_103_csv_to_dta_pluto_corrections.do
│       │       ├── worker_104_create_puma_tract10_xwalk.do
│       │       ├── worker_105_create_gross_income_long.do
│       │       ├── worker_106_create_orig_nopv_wide.do
│       │       ├── worker_107_create_abatements_rsbuild_long.do
│       │       ├── worker_108_create_scraped_nopv.do
│       │       ├── worker_109_create_mdrc_nyc.do
│       │       ├── worker_110_edit_ownership_names.do
│       │       ├── worker_111_create_nyc_subway_distance.do
│       │       ├── worker_112_create_nyc2010census_tract_to_nta_xwalk.do
│       │       ├── worker_113_create_censustract2010_chars.do
│       │       ├── worker_114_create_zipcode_soi_agi.do
│       │       ├── worker_201_merge_pluto_dof_clean_location.do
│       │       ├── worker_202_clean_age_zone_merge_income_then_drops.do
│       │       ├── worker_203_clean_owner_match_mdrc.do
│       │       ├── worker_204_clean_location_merge_nta.do
│       │       ├── worker_205_merge_scrape_make_pct_rs.do
│       │       ├── worker_301_create_nyc_data_owner_groups.do
│       │       └── worker_401_make_analysis_data.do
│       └── small_building_reform
│           ├── makedata_nychvs.do
│           └── worker
│               ├── worker_101_nychvs_2002to2017.do
│               └── worker_102_bgroup_occ_data.do
├── data
│   ├── final_data 
│   │   ├── nyc_07to19_analysis_data.dta
│   │   └── nychvs_2002to2017.dta
│   ├── intermediate_data (folder is empty, files generated by code)
│   └── raw_data
│       ├── census
│       │   ├── bgroup_07to19_occ_data.csv
│       │   ├── censustract2010_pop_area.csv
│       │   ├── nhgis_ds184_20115_tract_codebook.txt
│       │   ├── nhgis_ds184_20115_tract.csv
│       │   └── ZIP_Code_2007_NY.xls
│       ├── furman_hpd
│       │   ├── hpd2012.csv
│       │   └── hpd2015.csv
│       ├── nyc
│       │   ├── dof_00to21_20240808.csv
│       │   ├── gross_income.csv
│       │   ├── joined-nocrosstab.csv
│       │   ├── mdr
│       │   │   ├── Multiple_Dwelling_Registrations_2014.csv
│       │   │   ├── Multiple_Dwelling_Registrations_2017.csv
│       │   │   ├── Multiple_Dwelling_Registrations_2018.csv
│       │   │   ├── Multiple_Dwelling_Registrations_2020.csv
│       │   │   └── Multiple_Dwelling_Registrations_2022.csv
│       │   ├── nopv.csv
│       │   ├── nyc_nopv_scraped_letters_atfpp.csv
│       │   ├── nyc_nopv_scraped_letters.csv
│       │   ├── nyc_pluto_lotarea_correction.csv
│       │   ├── nyc_pluto_ownername_correction.csv
│       │   ├── nyc_pluto_ownername_public_list.csv
│       │   ├── nyc_pluto_yrb_correction.csv
│       │   ├── nyc_subway_distance.csv
│       │   ├── nyc2010census_tract_nta_puma_equiv.xlsx
│       │   ├── nyc2010census_tract_to_nta_xwalk.csv
│       │   ├── pluto_02to20_20220406.csv
│       │   ├── pluto_zone_02to20_20220406.csv
│       │   └── rc
│       │       ├── Registration_Contacts_2014.csv
│       │       ├── Registration_Contacts_2017.csv
│       │       ├── Registration_Contacts_2018.csv
│       │       ├── Registration_Contacts_2020.csv
│       │       └── Registration_Contacts_2022.csv
│       └── nychvs
│           ├── direct_census
│           │   ├── lng08_occ02_rev.dat
│           │   ├── lng08_occ05_rev.dat
│           │   ├── lng08_occ08_rev.dat
│           │   ├── stata_import_program_11.txt
│           │   ├── stata_import_program_17.txt
│           │   ├── stata_import_program.txt
│           │   ├── uf_11_repwgt_occ_web.txt
│           │   ├── uf_14_repwgt_occ_web.txt
│           │   └── uf_17_occ_web_b.txt
│           ├── documentation
│           │   ├── occ-02-long.pdf
│           │   ├── occ-05-long.pdf
│           │   ├── occ-08-long.pdf
│           │   ├── occ-11-long.pdf
│           │   └── occ-14-long.pdf
│           ├── NYCHVS 2002 Occupied File for ASA Challenge_Stata.dta
│           ├── NYCHVS 2005 Occupied File for ASA Challenge_Stata.dta
│           ├── NYCHVS 2008 Occupied File for ASA Challenge_Stata.dta
│           ├── NYCHVS 2011 Occupied File for ASA Challenge_Stata.dta
│           ├── NYCHVS 2014 Occupied File for ASA Challenge_Stata.dta
│           └── NYCHVS 2017 Occupied File for ASA Challenge_Stata.dta
├── output
│   ├── figures
│   │   ├── append_figure_avgcost_curve_new.pdf
│   │   ├── append_figure_avgcost_curve.pdf
│   │   ├── append_figure_eventstudy_rent_4to5_vs_6to9_controls_hhwt.pdf
│   │   ├── append_figure_eventstudy_rent_4to5_vs_6to9_controls_unwt.pdf
│   │   ├── append_figure_eventstudy_rent_4to5_vs_6to9_rentreg_hhwt.pdf
│   │   ├── append_figure_eventstudy_rent_placebo_hhwt.pdf
│   │   ├── figure_1a_binscatter_ltax.pdf
│   │   ├── figure_1b_eventstudy_rent_hhwt.pdf
│   │   ├── figure_3_nearest_neighbor.pdf
│   │   ├── figure_3_taxiv_het_2sls_demand.pdf
│   │   └── figure_3_taxiv_het_2sls_supply.pdf
│   ├── logs
│   │   ├── log_analysis_simtaxiv_20250806.log
│   │   ├── log_analysis_small_building_reform_20250806.log
│   │   ├── log_makedata_nyc_building_panel_20250807.log
│   │   └── log_makedata_small_building_reform_20250806.log
│   └── tables
│       ├── alt_appendix_table_small_building_reform_new_buildings.tex
│       ├── alt_appendix_table_small_building_reform_new_buildings.txt
│       ├── append_table_bgroup_occ_did.tex
│       ├── append_table_did_level_rent.tex
│       ├── append_table_did_level_tax.tex
│       ├── append_table_eventstudy_rent_hhwt.tex
│       ├── append_table_small_building_reform_balance.tex
│       ├── append_table_small_building_reform_sumstat.tex
│       ├── append_table_taxiv_alt_mkt_blockyrFE.tex
│       ├── append_table_taxiv_corr_nonspatial_neighbors.tex
│       ├── append_table_taxiv_het2.tex
│       ├── append_table_taxiv_level_reg.tex
│       ├── append_table_taxiv_nearest_neighbors.tex
│       ├── append_table_taxiv_posneg_iv_split.tex
│       ├── append_table_taxiv_subsample_res_only.tex
│       ├── append_table_taxiv_subsample_rs_less_50pct.tex
│       ├── append_table_taxiv_sumstat.tex
│       ├── appendix_discussion_taxiv_neighbors_tracts.tex
│       ├── appendix_discussion_taxiv_variation.tex
│       ├── appendix_table_taxiv_ols.tex
│       ├── table_1a_did_ltax.tex
│       ├── table_1b_did_lrent.tex
│       ├── table_2a_taxiv_fs_rf_2sls.tex
│       └── table_2b_taxiv_rf_nonspatial_neighbors.tex
└── readme_atfpp_watson_ziv.txt






## Citation
If you use this replication package, please cite:
Watson, Christopher and Ziv, Oren. (2025). "A Test for Pricing Power in Urban Housing Markets." Review of Economics and Statistics

---
*Last updated: August 2025
*Replication package version: 1.0*